var UserData = {}

//判断是否登录
UserData.isLogin = () => {
  if(localStorage.getItem("u_id")==undefined||localStorage.getItem("u_id")==0){
    return false;
  }else{
    return true;
  }
}

//获取当前的节点ID
UserData.getOsid = () => {
  return localStorage.getItem("u_master_osid");
}

//获取当前的节点的类型
UserData.getOsType = () => {
  return localStorage.getItem("u_type");
}

//获取当前用户ID
UserData.getUID = () => {
  return localStorage.getItem("u_id");
}

//获取当前的节点的名称
UserData.getOsName = () => {
  return localStorage.getItem("u_master_name");
}

//获取当前用户是否为管理
UserData.getIsManager = () => {
  return localStorage.getItem("u_is_manager");
}

//获取昵称
UserData.getNickname = () => {
  return localStorage.getItem("u_nickname");
}

//获取组长ID
UserData.getLeader = () => {
  return localStorage.getItem("u_leader");
}

export default UserData